package org.mikeliu.exp3.homework1;

import java.util.Scanner;

class Student
{
	private String name;
	private double score;

	public Student()
	{
		name="";
		score=0;
	}
	
	public Student(String name, double score) 
	{
		super();
		this.name = name;
		this.score = score;
	}

	public String getName() 
	{
		return name;
	}

	public void setName(String name) 
	{
		this.name = name;
	}

	public double getScore()
	{
		return score;
	}

	public void setScore(double score) 
	{
		this.score = score;
	}
	
}

public class Main
{
	public static void main(String[] args) {
		String stu1NameString,stu2NameString;
		double stu1Score,stu2Score;
		Scanner scanner=new Scanner(System.in);
		
		stu1NameString=scanner.next();
		stu1Score=scanner.nextDouble();
		
		Student stu1=new Student(stu1NameString,stu1Score);
		System.out.println("stu1: name="+stu1.getName()+",score="+stu1.getScore());
		
		stu2NameString=scanner.next();
		stu2Score=scanner.nextDouble();
		
		Student stu2=new Student(stu2NameString,stu2Score);
		System.out.println("stu2: name="+stu2.getName()+",score="+stu2.getScore());
		
	}
}
